// 统一管理接口

import http from "./http";

export async function getBanner() {
  let { data } = await http.get("/public/v1/home/swiperdata");
  return data;
}

export async function getDetailData(params) {
  let { data } = await http.get(
    "/public/v1/goods/detail?goods_id=" + params.id
  );
  return data;
}

// async 函数的return值 永远都是一个promise对象
// export { getBanner };
